<%inherit file="../mtp.html" />

<div id="page_info">
Title: ${c.page.title}
Revision: ${c.page_rev.revision}
On: ${h.formatdatetime(c.page_rev.created)}
By: ${c.page_rev.author.username if c.page_rev.author else 'anon'}

</div>

<div class="wiki_content">
    ${c.page_rev.render()}
</div>

<%doc>
<!--
<div id="page_actions">
    % for action in c.page_actions:
    ${h.form(action.url, action.method)}
        % for name, val in action.options.iteritems():
            <input type="hidden" name="${name}" value="${val}" />
        % endfor
        <input type="submit" value="${action.title}" />
    </form>
    % endfor
</div>
-->
</%doc>

<script language="javascript">
$(document).ready(function() {
   $('.nav a:contains("Delete")').click(function() { 
        return confirm('Are you sure you want to delete this page?');
    });
});
</script>

